package simonxianyu.learn.springmybatis.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import simonxianyu.learn.springmybatis.svc.Md5PasswordEncoder;

/**
 *
 * Created by simon on 2017/2/21.
 */
@ComponentScan(
    basePackages = "simonxianyu.learn.springmybatis.svc"
)
public class RootContext {

  @Bean
  public Md5PasswordEncoder passwordEncoder() {
    return new Md5PasswordEncoder("IamOnline");
  }
}
